home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
bipl.zip
/
PROCS.ZIP
/
PARSCOND.ICN
< prev
next >
Wrap
Text File
|
1992-09-28
|
881b
|
36 lines
############################################################################
#
# File: parscond.icn
#
# Subject: Procedure to condense parse tree
#
# Author: Ralph E. Griswold
#
# Date: March 31, 1992
#
###########################################################################
#
# Procedure to condense a parse tree produced by the output of pargen.icn
# and produce the string that was parsed.
#
# The necessary record declaration is provided by the program with which
# is linked.
#
############################################################################
#
# See also: parsgen.icn
#
############################################################################
procedure parscond(R)
local result, x
result := ""
every x := !(R.alts) do
result ||:= string(x) | parscond(x)
return result
end